package com.hss.base.interfaces;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by Administrator on 2017/2/10.
 */

public interface IBaseView extends IDestory{
    void showLoadingDialog();

    void hideLoadingDialog();

    void showMSVLoading();

    void showMSVEmpty();

    void showMSVNetErr();

    void showMSVUnknowErr();

    void showMSVContent();

    void showToast(String text);

    void showToast(int textId);

    void finishActivity();
    void finishActivity(int resultCode);
    void finishActivity(int resultCode, Intent data);


    <T extends AppCompatActivity> void startActy(Class<T> clazz );
    <T extends AppCompatActivity> void startActy(Class<T> clazz, Bundle data);
    <T extends AppCompatActivity> void startActyForResult(Class<T> clazz,  int requestCode);
    <T extends AppCompatActivity> void startActyForResult(Class<T> clazz, Bundle data, int requestCode);

}
